//
//  OrderDetailNet.m
//  beautyLamp
//
//  Created by Tam Kwok To Michael on 2017/10/16.
//  Copyright © 2017年 Tam Kwok To Michael. All rights reserved.
//

#import "OrderDetailNet.h"
#import "BasicNetManager.h"
#import "BLHeader.h"
#import "BLOrder.h"
#import <YYModel.h>

@implementation OrderDetailNet

+ (void)getOrderDetail:(NSString *)orderId completer:(void (^)(id result, NSError *error))completer {
    BasicNetManager *manager = [BasicNetManager share];
    [manager postURL:ORDERDETAILBYORDERCODE param:@{@"orderCode" : orderId} completer:^(id result, NSError *error) {
        if(completer) {
            BLOrder *order;
            if (result) {
                //NSLog(@"%@",result);
                order = [BLOrder yy_modelWithJSON:result];
            }
            completer(order,error);
        }
    }];
}

@end
